#pragma once
#include "C:\Projects\VisualStudio\MFC\vipiska.h"
#include <QtXml>

class database
{
public:
	database(void);
	~database(void);

	vipiska tmpRecord;
	vipiska oldTmpRecord;
	QList<vipiska> mainData;
	QList<vipiska> oldData;
	int todaySerialNumber;

	QDomDocument *xmlDocument;
	QDomElement mainTeg;

	void saveTmpRecord();
	void saveToXml();
	void loadOldData(QString &date);
};

